
<#
.SYNOPSIS 
Hydration Script for MDTEx

.DESCRIPTION
Install required Components...

.NOTES
Copyright Keith Garner (KeithGa@DeploymentLive.com), All rights reserved.

.LINK
http://MDTEx.CodePlex.com

#>

[CmdletBinding()]
param(
    [string] $DownloadPath,
    [parameter(ValueFromRemainingArguments=$true)] $Remaining
)

"Install all required Components" | Write-LogVerbose

if ( -not ( Test-Path "$env:programfiles\7-zip\7z.exe" ) )
{
    Install-ChocolateyPackage "7zip"
}

if ( -not ( Test-Path "$env:programfiles\Microsoft Deployment Toolkit\Bin\Microsoft.BDD.Core.dll" ) )
{
    install-ChocolateyPackage "MDT"
}
elseif (  (get-item "$env:programFiles\Microsoft Deployment Toolkit\Bin\Microsoft.BDD.PSSnapIn.dll").VersionInfo.FileVersion -ne "6.3.8330.1000" )
{
    install-ChocolateyPackage "MDT"
}

# TBD
# Install-ChocolateyPackage "sccmtoolkit"
